import http from '../util/http';

const getWoaList = data => http.getData(data, '/api/publicAccounts');

const unbindWoa = info => http.postData(info, '/api/publicAccounts/unbind');

const newUnbindWoa = info => http.postData(info, '/api/publicAccounts/refreshPublicAccount');

const checkAppIdOk = data => http.getData(data, '/api/publicAccounts/isAvailable');

export default {
  getWoaList,
  unbindWoa,
  checkAppIdOk,
  newUnbindWoa,
};
